<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta name="description" content="">
    <meta http-equiv="x-dns-prefetch-control" content="on">

    <title>关于我们</title>
    <link href="../../css/css.css" rel="stylesheet" type="text/css">
    <script src="../../js/jquery-v1.11.2.min.js"></script>
    <script src="../../js/common.js"></script>
    <script src="../../js/driver.js"></script>
</head>
<body>
<section class="about_app_icons"><img src="../../img/app_icon.png" width="100%" height="100%"/></section>
<section class="version"><font id="currentVersion">V201709031</font></section>
<section class="itemgroup mt38 p15">
    <div class="oneitem">
        微信公众号
        <font class="right font12 gray">@交运便捷</font>
    </div>
    <div class="oneitem">
        安装来源
        <font class="right font12 gray">华为商店</font>
    </div>
    <div class="oneitem" id="checkVersionDiv">
        检查新版本
        <i class="iconfont rightsmallicon">&#xe6db;</i>
        <font class="right red font12" id="latestVersion"></font>
    </div>
</section>
<section class="copyright">Copyright © 2017 上海交运</section>
</body>
<script>
$(function (){
	 //token验证
		checkDriverTokenIndex();
		
		$("#currentVersion").text(delegate.getVersion());
		
		var result = delegate.checkVersion();
		if (result != '0') {
		   $("#latestVersion").text(result);
		}
		
		$("#checkVersionDiv").click(function(){ 
		  result = delegate.checkVersion();
	    if (result != '0') {
	        $("#latestVersion").text(result);
	        var update = confirm('有新版本，确定升级吗？');
	        if (update) {
	            delegate.updateApp();
	        }
	    }else{
	    	alert('当前以是最新版本了:)');	
	    }
		});
	}); 
</script>
</html>